﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Models.PayModels.PayModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	用户充值
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
    <fieldset>
        <legend>在线充值 
        <% if (Code.BLL.CacheManage.OptionSite[Code.Models.Option_Site_Key.Site_CardPay_Enable].ToBool(false)) %>
        <% { %>
        <%=Html.ActionLink("点卡充值", "CardPay", null, new { @class = "a_blue" })%>
        <% } %></legend>
        <% Html.BeginForm(); %>
        <%=Html.ValidationMessage("Error") %>
        <ul class="editlist">
            <li>
                <span class="label">充值金额:</span>
                <span><%=Html.TextBoxFor(p=>p.Money) %><%=Html.ValidationMessageFor(p=>p.Money) %></span>
            </li>
            <li>
                <span class="label">支付方式:</span>
                <span class="spans">
                    <% foreach (var item in Model.Pays) 
                       {%>
                       <span class="span1 width150">
                           
                           <input type="radio" name="PayType"  id='PayType_<%=item.Key %>' value='<%=item.Key %>' <%=Model.PayType==item.Key?"checked='checked'":"" %> />
                           <label for='PayType_<%=item.Key %>'>
                            <img height="28px" src='<%=Url.Content("~/Content/img/pay/pay_logo_"+item.Key+".jpg") %>' alt='<%=item.Value %>' />
                           </label> 
                       </span>  
                    <% } %>
                    <%=Html.ValidationMessageFor(p=>p.PayType) %>
                </span>
            </li>
            <li class="btn">
                <input type="submit" value="确认充值" onclick="return confirm('确认无误充值吗？')" />
            </li>
        </ul>
        <% Html.EndForm(); %>
    </fieldset>
</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
</asp:Content>
